﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Util;
using Model;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace BLL
{
    public class BllParty : Bll<tb_party>
    {
        public BllParty() { }
        public BllParty(Page _page) : base(_page) { }
        public BllParty(Dal<tb_party> _dal) : base(_dal) { }
        public BllParty(Page _page, Dal<tb_party> _dal) : base(_page, _dal) { }

        public override bool Check(tb_party entity)
        {
            return true;
        }
        public void InitDdl(ListControl ctl)
        {
           ctl.Items.Add(new ListItem("----全部----","0"));
           foreach (var item in GetList(c=>true,true,c=>c.sort))
           {
               ctl.Items.Add(new ListItem(item.name, item.id.ToString()));
           }
        }
    }
}
